package com.lei2j.dubbo.consumer;

import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * author: leijinjun
 * date: 2019/7/15
 */

@Component
public class NotiftImpl implements Notify {

    public NotiftImpl() {
    }

    @Override
    public void onInvoke(String msg) {
        System.out.println("onInvoke:"+msg);
    }

    @Override
    public void onReturn(String msg, String value) {
        System.out.println("onReturn:"+msg+"-- value:"+value);
    }

    @Override
    public void onThrow(Throwable t, String msg) {
        t.printStackTrace();
        System.out.println("onThrow:"+msg);
    }
}
